package cn.vivi.design.abstractfactory;


import cn.vivi.design.simpleFactory.Coffee;

public class CoffeeStore {

    public static void main(String[] args) {
        DessertFactory factory = new ItalyDessertFactory();

        Coffee coffee = factory.createCoffee();
        coffee.addSugar();
        coffee.addMilk();
        System.out.println(coffee.getName());

        Dessert dessert = factory.createDessert();
        dessert.show();
    }

}
